import request from '../../utils/request'

// 查询task列表
export function listTask(query) {
  return request({
    url: '/task/list',
    method: 'get',
    params: query
  })
}

// 查询表单
export function formDataShow(taskID) {
  return request({
    url: '/task/formDataShow/'+taskID,
    method: 'get',
  })
}

// 查询表单
export function formDataSave(taskID,data) {
  return request({
    url: '/task/formDataSave/'+taskID,
    method: 'post',
    data:data
  })
}

// 签收
export function claim(taskId) {
  return request({
    url: '/flowdata/claim/'+taskId,
    method: 'post'
  })
}

// 流程终止
export function cancel(taskId) {
  return request({
    url: '/flowdata/cancel/'+taskId,
    method: 'post'
  })
}




